home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
filesyst
/
dosfs
/
dmsdosfs.000
/
dmsdosfs
/
dmsdosfs-0.6.9b
/
inode.c.dpat
< prev
next >
Wrap
Text File
|
1996-06-29
|
2KB
|
48 lines
find #include <linux/umsdos_fs.h>
insert #include "umsdos_dmsdos.h"
find void umsdos_patch_inode (
find if (!umsdos_isinit(inode)){
find if (S_ISREG(inode->i_mode)){
insert #ifdef CONFIG_UMSDOS_UPON_DMSDOS
insert if(inode->i_sb->s_blocksize==512&&dostest(inode)){
insert #else
next
insert #endif
# the rest is support for root fs on compressed partition
# comment it out or delete it if it doesn't patch into your umsdos version
find struct super_block *UMSDOS_read_super(
find struct inode *pseudo;
insert struct inode *testinode;
insert #ifdef CONFIG_DMSDOS_UMSDOS_BOOT
insert int i=0;
insert extern int dbl_cvf_inos[];
insert extern int lowest_never_used_cvfnr;
insert #endif
next
insert #ifdef CONFIG_DMSDOS_UMSDOS_BOOT
insert psd_retry:
insert if(lowest_never_used_cvfnr!=0&&i<MAXDBLFILES)
insert { if(dbl_cvf_inos[i]!=0)
insert { printk("DMSDOS: umsdos_read_super: trying CVF %d\n",
insert i+1);
insert testinode=iget(sb,dbl_cvf_inos[i++]);
insert if(testinode==NULL)goto psd_retry;
insert }
insert }
insert else
insert { printk("DMSDOS: umsdos_read_super: trying host fs\n");
insert testinode=sb->s_mounted;
insert }
insert #else
insert testinode=sb->s_mounted;
insert #endif
next
replace if (umsdos_real_lookup (testinode,UMSDOS_PSDROOT_NAME
find iput (pseudo);
insert #ifdef CONFIG_DMSDOS_UMSDOS_BOOT
insert if(pseudo_root==NULL&&testinode!=sb->s_mounted)
insert { iput(testinode);
insert goto psd_retry;
insert }
insert #endif